function linkOnTab(contextPath) {
    data = document.getElementById("data");
    x = data.childNodes.length - 1;
    rows = data.childNodes.item(x).getElementsByTagName("tr");
    for(i=0; i < rows.length; i++) {
        id = rows.item(i).getElementsByTagName('td').item(1).innerHTML;
        rows.item(i).setAttribute("OnClick", "document.location.href = '"+contextPath+"/Consultation.action?fiche&id="+id+"'");
    }
}

function hideNshow(id) {
    node = document.getElementById(id);
    if (node.style.display=='none')
        if (id in hideNshowTab)
            node.style.display=hideNshowTab[id];
        else
            node.style.display='block';
    else {
        hideNshowTab[id] = node.style.display;
        node.style.display='none';
    }
}